var express = require('express');
var path = require('path');

var app = express();

app.use(express.static(path.join(__dirname, './')));
app.get('/', (req, res) => {
    res.sendFile(path.join(__dirname, './index.html'));
})

app.get('/e.gif', (req, res) => {
    console.log(req.query);
    res.send('ok')
})
app.get('/p.gif', (req, res) => {
    console.log(req.query);
    res.send('ok')
})

app.listen(8899, () => {
    console.log('server run in 8899 port...');
});
